tools: turbostat: Add checks for failure of fgets() and fscanf()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 11 Sep 2018 02:07:28 +0000 (03:07 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commit29cb6d2a2498ec394a1f1b01e790425acc281371
treeb8c62e80c4334589860c2789c3c6d4c8f44f52a8
parent640b276a11bcc802343f70ad3282007d54f643d1
tools: turbostat: Add checks for failure of fgets() and fscanf()

Most calls to fgets() and fscanf() are followed by error checks.
Add an exit-on-error in the remaining cases.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name tools-turbostat-Add-checks-for-failure-of-fgets-and-.patch
tools/power/x86/turbostat/turbostat.c